﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

using Bricks.Component.Utils;
using Bricks.Site.Models;
using Bricks.Business.Models.SafetyManagement;


namespace Bricks.Business.Service
{
    /// <summary>
    /// 安全管理-环保通报
    /// </summary>
    public interface IEnvironmentalService
    {
        IQueryable<Environmental> Environmentals { get; }

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        OperationResult Add(Environmental model);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        OperationResult Modify(Environmental model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        OperationResult Delete(Guid id);

        /// <summary>
        /// 根据通报ID获取通报名称
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        string GetCircularNameByID(Guid id);
    }
}